<div class="box-white">
    <?=$title?>
</div>
<div class="box-content">
<?=form_open('product/search/')?>
Tìm kiếm sản phẩm:
<input type="text" name="keyword" class="field w150" id="keyword" value="">
Danh mục :
<select name="cid">
    <option value="0">Tất cả danh mục</option>
    <?foreach($listcat as $rs):?>
    <option value="<?=$rs->CategoryID?>">
    <?=$rs->CategoryName?>
    </option>
    <?endforeach;?>
</select>
<!--Sắp xếp theo : -->
<select name="orderby" id="orderby">
    <option value="0">Sắp xếp</option>
    <option value="1">Thứ tự HCM</option>
    <option value="5">Thứ tự HN</option>
    <option value="2">Ngày tháng</option>
    <option value="3">Giá M. Nam</option>
    <option value="4">Giá M. Bắc</option>
</select>
Khuyến mãi
<input type="checkbox" name="promo" id="promo" value="1" />
<input type="submit" value="Tìm kiếm" name="bt_search">
<?=form_close()?>
<? $attributes = array('class' => 'email', 'id' => 'checknew');
        echo form_open('product/delsproduct', $attributes);?>
<input type="hidden" name="page" value="<?=(int)$this->uri->segment('3')?>">
<table width="100%" class="admindata">
    <thead>
        <tr>
            <th colspan="6"> <input type="submit" onclick="return verify_del();" name="btn_submit" value="Xóa">
                Hiện có
                <?=$num?>
                sản phẩm <span class="pages">
                <?=$pagination?>
                </span> 
                <!--<div style="float: right;"><a href="<?//=site_url('product/addproduct')?>">Thêm mới</a> </div>--> 
                <!--<div style="float: right;"><a href="<?//=site_url().$export?>">Export</a> </div>--> </th>
        </tr>
        <tr>
            <th width="51" class="checkbox"><input type="checkbox" name="sa" id="sa" onclick="check_chose('sa', 'ar_id[]', 'checknew')" /></th>
            <th width="47">ID</th>
            <th style="text-align:center;">Hình ảnh</th>
            <th>Tên sản phẩm</th>
            <th width="37"><input type="submit" value="Lưu" class="submit" name="btn_submit"></th>
            <th width="172" class="publish">Chức năng</th>
        </tr>
    </thead>
    <?
            $k=1;
			$ar_pid = '';
            foreach($list as $rs):
				$ar_pid .=$rs->ProductID.',';
				$proimg = !empty($rs->ProductImg) ? '<img src="'.base_url_site().'uploads/product/40/'.$rs->ProductImg.'" />' : '' ;
			?>
    <tr class="row<?=$k?>">
        <td align="center"><input type="checkbox" name="ar_id[]" value="<?=$rs->ProductID?>"></td>
        <td><?=$rs->ProductID?></td>
        <td style="text-align:center;"><?=$proimg?></td>
        <td><?=$rs->ProductName?></td>
        <td style="text-align:center;"><input type="text" name="Order<?=$rs->ProductID?>" style="width: 30px;text-align: center;" value="<?=$rs->Ordering?>"></td>
        <td align="center"><?=icon_edit('product/editproduct/'.$rs->ProductID)?>
            &nbsp; <span id="publish<?=$rs->ProductID?>">
            <?=icon_active("'product'","'ProductID'",$rs->ProductID,$rs->status)?>
            </span>&nbsp;
            <?=icon_del('product/delproduct/'.$rs->ProductID.'/'.(int)$this->uri->segment(4))?></td>
    </tr>
    <?
				$k=1-$k;
				endforeach;
			?>
    <tfoot>
        <tr>
            <td colspan="5"><input type="submit" onclick="return verify_del();" name="btn_submit" value="Xóa">
                <input type="hidden" name="ar_pid" value="<?=trim($ar_pid,',')?>">
                Hiện có
                <?=$num?>
                sản phẩm <span class="pages">
                <?=$pagination?>
                </span></td>
            <td width="11">
    </tfoot>
</table>
<?=form_close()?>
<div> </div>
